package com.asset.servlet.finance;
/**
 *@ClassName FindOneServlet
 *@Author B21015118吴逸鑫
 *@Date 2022/6/10 09:28
 */

import com.asset.service.FinanceService;
import com.asset.service.impl.FinanceServiceImpl;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**单个查找**/
@WebServlet("/findOneServlet")
public class FindOneServlet extends HttpServlet{
    FinanceService bookService = new FinanceServiceImpl();
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        bookService.findOne(request, response);

    }


    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");
        doGet(request, response);
    }
}
